package cn.qingxuntech.console.entity

import cn.qingxuntech.console.enumration.StatusEnum
import com.fasterxml.jackson.annotation.JsonFormat
import com.mybatisflex.annotation.Id
import com.mybatisflex.annotation.Table
import java.time.LocalDateTime

@Table("t_ssp_media")
open class SspMedia {

    @Id
    var id: String? = null
    var name: String? = null
    var accountId: Long? = null
    var osType: String? = null
    var aesKey: String? = null
    var rsaPriKey: String? = null
    var rsaPubKey: String? = null
    var status: Int = StatusEnum.NORMAL.code
    var mediaCostRate: Double? = null

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    var createTime: LocalDateTime? = null

}